package com.un.ebs.invoice.domain;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (InvoiceNoteItem)表实体类
 *
 * @author liubo
 * @since 2021-01-03 21:23:29
 */
@Data
@Component
@TableName("tb_invoice_note_item")
@SuppressWarnings("serial")
public class InvoiceNoteItem extends Model<InvoiceNoteItem> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;
    
                
    @DbField(name = "note_id",  length = 40 , precision = 0)
    private String noteId;
                
    @DbField(name = "inventory_note_id",  length = 40 , precision = 0)
    private String inventoryNoteId;
                
    @DbField(name = "sku_id",  length = 40 , precision = 0)
    private String skuId;
                
    @DbField(name = "invoice_qty",  length = 18 , precision = 4)
    private Double invoiceQty;
                
    @DbField(name = "cost_price",  length = 18 , precision = 4)
    private Double costPrice;
                
    @DbField(name = "contract_price",  length = 18 , precision = 4)
    private Double contractPrice;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
}